<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/4/2
  Time: 20:43
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1 style="text-align: center">题库</h1>
<p style="color: gray;font-size: 12px;text-indent: 5px">温馨提示:勾选对应题目,添加到试卷</p>
<hr>
<button value="返回" onclick="back()"></button>
<form action="http://localhost:8080/ExaminationManagement1_war/Addquestions" method="post">
    <input type="submit" style="margin-left: 300px;position: fixed" value="添加"><br>
    <c:forEach items="${questions}" var="question" varStatus="id">
        <br><br>
        <div title=" ${question.getQuestion()}" >题目id: ${question.getId()}</div><br>
        <input type="checkbox" name="questionid" value="${question.getId()}">
        <br><br>
    </c:forEach>
</form>
<script type="text/javascript">
    function back(){
        window.location="changepaper.jsp"
    }
</script>
</body>
</html>
